/**
 * @(#) CongMoneyVO.as
 *
 * @date		2011. 03. 19.
 * @version		1.0
 * @author		bgh
 * @description	메인 리스트  Value Object
 *
 */
package com.skt.common_hr.msstop.model.vo
{
	import com.skt.common_hr.common.Variables;

	[Bindable]
	public class mainListVO
	{
		public var  GWAREKEY:String;	//결재키
		
		public var HBETRG :String; 		// 한글 대출금액 
		public var NBETRG :String; 		// 숫자 대출금액
		
		public var PYN :String; 		// 지급여부

		public var STEXT :String; 		// 소속
		public var JTEXT :String;		// 직위
		public var REGNO :String;		// 주민번호
		
		public var JOINT :Date;			// 입사일
		public var JOINT_TX :String;	// 입사일
		public var JOINT_JSON :String;	// 입사일
		
		public var HOME  :String;		// 집전화
		public var ADDR  :String;		// 현주소
		public var HPHONE:String; 		// 핸폰번호 
		
		
		public var  WSTATUS:String; 	//신청상태코드
		public var  WSTATX:String; 		//신청상태 TEXT
		public var  BETRG:int; 			//대출금액
		public var  BETRG_TX:String; 	//대출금액 콤마
		public var  BUSE:String; 		//대출용도
		public var  BUSET:String; 		//대출용도 TEXT
		public var  BREAS:String; 		//대출사유
		public var  PERNR:String; 		//신청자
		public var  ENAME:String; 		//신청자 명
		public var  SDATE:Date; 		//신청일자
		public var  PAYDT:Date; 		//지급일자
		public var  RSTATUS:String; 	//보증보험상태
		public var  RSTATX:String; 		//보증보험상태 TEXT

		public var  DLART:String; 		//대출종료
		public var  DTEXT:String; 		//대출종류 TEXT
		public var  WAERS:String; 		//통화 키
		
		public var  VAMT:int; 			//보증보험가입금액
		public var  VAMT_TX:String; 	//보증보험가입금액
		public var  VYN:String; 		//보증보험가입여부


		public var SDATE_JSON:String;
		public var PAYDT_JSON:String;

		public var SDATE_TX:String;
		public var SDATE_TX_F:String;
		
		public var PAYDT_TX:String;
		public var RETXT:String;
		
		public var BYN:String; // 대출확정
		public var BMON:String; // 상환개시월
		
		
		public function get REGNO_CHECK():String {
			//7808291051616
			var rtnVal:String = REGNO.substring(0, 6)+"-"+REGNO.substring(6, 13);
			return rtnVal; 
		}
		
		public function get PERNR_CHECK():String {
			return parseInt(PERNR).toString();
		}

		public function get edit_CHECK():Boolean {
			if(WSTATUS=="3") {
				return true;
			} else {
				return false;
			}
		}

		public function get requestForm_CHECK():Boolean {
			if(WSTATUS=="3") {
				return true;
			} else {
				return false;
			}
		}
	}
}